package com.augurit.smartform.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Table(name = "SM_PAGE_DIR")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SmPageDir {
	private Long id;
	private Long parentId;
	private String name;
	@Id
    @SequenceGenerator(name="SEQ_SM_PAGE_DIR", sequenceName="SEQ_SM_PAGE_DIR", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SEQ_SM_PAGE_DIR")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getParentId() {
		return parentId;
	}
	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
